const express = require("express");
const router = express.Router();
const service = require("../model/chat");
const uploads = require("../model/multer");

router.post("/add", (req, res) => {
    service.add(req.body.inner, req.body.userId, req.body.roomId, data => {
        res.send(data)
            .status(200)
            .end();
    });
});

// router.post("/image",uploads.any(), (req, res) => {
//     console.log(uploads);
//     console.log(req)
// })

module.exports = router;